<h2>All Books</h2>
<br />

<?php
if(empty($page_result))
{
	echo "No Records";
}
else 
{
	 echo "<table>";
	 	echo "<tr><td>App ID</td><td>Book Name</a></td><td>Author</td><td>Publisher</td><td>Pub Date</td><td>Price</td><td>Cover</td></tr>";
	 foreach ($page_result as $msg)
	 {
		echo "<tr><td>".$msg['prod_id']."</td><td><a target=\"_blank\" href=\"".site_url('scan_admin/get_book_message/'.$msg['b_id'])."\">".$msg['name']."</a></td><td>".$msg['author']."</td><td>".$msg['publisher']."</td><td>".$msg['pub_date']."</td><td>".$msg['price']."</td><td><img width='150px' height='150px' src=\"".base_url().$msg['pic']."\" /></td></tr>";
	 }	
}
?>
</table>
<?php echo $page_link;?>
